<?php

namespace app\cms\controller\api;

use app\cms\model\CmsWareInbound;
use think\admin\Controller;

/**
 * Home
 * Class Home
 * @package app\cms\controller\api
 */
class Home extends Controller
{
  /**
   * 首页数据
   * @return void
   */
  public function index()
  {

    $map = ['deleted' => 0];
    $query = CmsWareInbound::mQuery()->equal('status');
    $result = $query->where($map)->order('id desc')->page(true, false, false, 20);
    //$this->success('获取订单数据成功！', $result);

  }

  public function a()
  {

    $data = $this->_vali([
      'password.require' => '登录密码不能为空！',
      'name.default' => '',
    ]);

    $this->success('获取订单数据成功！', $data);
  }
}
